package com.gla.market.entity;

public class FYH_Shop {
    private int id;
    private String name;
    private String address;
    private double longitude;
    private double latitude;
    private String photo;
    private String introduction;

    public FYH_Shop() {
    }

    public FYH_Shop(int id, String name, String address, double longitude,
                    double latitude, String photo,
                    String introduction) {
        this.id = id;
        this.name = name;
        this.address = address;
        this.longitude = longitude;
        this.latitude = latitude;
        this.photo = photo;
        this.introduction = introduction;
    }

    public int howfarm(double ulongitude, double ulatitude){
        return (int) (Math.sqrt((longitude - ulongitude) * (longitude - ulongitude) + (latitude - ulatitude) * (latitude - ulatitude)) * 100000);
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public double getLongitude() {
        return longitude;
    }

    public void setLongitude(double longitude) {
        this.longitude = longitude;
    }

    public double getLatitude() {
        return latitude;
    }

    public void setLatitude(double latitude) {
        this.latitude = latitude;
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }
}
